﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;

namespace DayOfWeek
{
    public class DayOfWeekService : IDayOfweekService
    {
        public string GetData(DateTime value)
        {
            string day;
            switch (value.DayOfWeek)
            {
                case System.DayOfWeek.Monday: day = "Понеделник";
                    break;
                case System.DayOfWeek.Tuesday: day = "Вторник";
                    break;
                case System.DayOfWeek.Wednesday: day = "Сряда";
                    break;
                case System.DayOfWeek.Thursday: day = "Четвъртък";
                    break;
                case System.DayOfWeek.Friday: day = "Петък";
                    break;
                case System.DayOfWeek.Saturday: day = "Събота";
                    break;
                case System.DayOfWeek.Sunday: day = "Неделя";
                    break;
                default: day = "Invalid";
                    break;
            }
            return day;
        }
    }
}
